package tree;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @ Author     ：侯耀祖
 * @ Description：
 */
public class Main {
    public static void main(String[] args) {
        buildTreeDfs buildTreeDfs = new buildTreeDfs();
        List<Integer> integers = new ArrayList<>(Arrays.asList(50,30,70,null,40,60,80));
//        List<Integer> integers2 = new ArrayList<>(Arrays.asList(2,1,3,null,4,null,7));

        TreeNode root = buildTreeDfs.buildTree(integers);
//        TreeNode sub = buildTreeDfs.buildTree(integers2);
//        averageOfLevels average = new averageOfLevels();
//        average.averageOfLevels(root);
        deleteNode c = new deleteNode();
        c.deleteNode(root, 50);
    }

}
